//
//  CCNewViewController.m
//  BuDeJie
//
//  Created by demoncraz on 2017/2/9.
//  Copyright © 2017年 demoncraz. All rights reserved.
//

#import "CCNewViewController.h"
#import "CCSubTagController.h"

@interface CCNewViewController ()

@end

@implementation CCNewViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor blueColor];
    // Do any additional setup after loading the view.
    [self setupNavBar];
    
    
}


- (void)setupNavBar {
    
    //添加右上角barButtonItem
    
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem barButtonItemWithImage:[UIImage imageOriginalWithName:@"review_post_nav_iconN_20x17_"] highImage:[UIImage imageOriginalWithName:@"review_post_nav_iconN_20x17_"] target:self action:@selector(subTagClick)];
    
    //添加titleView
    self.navigationItem.titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"MainTitle_107x19_"]];
    
}

- (void)subTagClick {
    
    CCSubTagController *subTagVc = [[CCSubTagController alloc] init];
    [self.navigationController pushViewController:subTagVc animated:YES];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
